package cn.stylefeng.guns.modular.yingbao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 金额流水
 * </p>
 *
 * @author jj
 * @since 2019-12-11
 */
@TableName("yingbao_user_money_log")
public class UserMoneyLog extends Model<UserMoneyLog> implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @TableField("userid")
    private Long userid;

    @TableField("pay_type")
    private Integer payType;

    @TableField("remark")
    private String remark;

    @TableField("money")
    private Long money;
    /**
     * 1挂售（记录）
     * 2直推返利
     * 3间推返利
     * 4团队返利
     * 5建仓成功（记录）
     * 6申诉成功（记录）
     * 7被审查（记录）
     */
    @TableField("stuats" )
    private int stuats;
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserid() {
        return userid;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getMoney() {
        return money;
    }

    public void setMoney(Long money) {
        this.money = money;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getStuats() {
        return stuats;
    }

    public void setStuats(int stuats) {
        this.stuats = stuats;
    }

    @Override
    public String toString() {
        return "UserMoneyLog{" +
        "id=" + id +
        ", userid=" + userid +
        ", payType=" + payType +
        ", remark=" + remark +
        ", money=" + money +
        ", createTime=" + createTime +
        "}";
    }
}
